package com.linkai.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author yamon
 * @since 2021-02-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="InputorderProduct对象", description="")
public class InputorderProduct implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
      @TableId(value = "input_order_product_id", type = IdType.AUTO)
    private Integer inputOrderProductId;

    @ApiModelProperty(value = "进货单id")
    private Integer inputOrderId;

    @ApiModelProperty(value = "商品id")
    private Integer productId;

    @ApiModelProperty(value = "商品进货的数量")
    private Integer inpordNum;

    @ApiModelProperty(value = "商品进货时的单价")
    private BigDecimal inpordPrice;

    @ApiModelProperty(value = "商品总价，单价乘数量")
    private BigDecimal inpordSum;

    @ApiModelProperty(value = "每一行商品的总价钱")
    private BigDecimal eachSum;

    @ApiModelProperty(value = "商品是否入库")
    private Integer inpordState;

      @TableField(fill = FieldFill.INSERT)
    private Date createTime;

      @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableLogic
    private Integer deleted;


}
